/**
 * 拍摄信息页面
 * - 使用自定义封装组件，简化代码，统一管理。
 * - 2025-07-17 09:36:43 tzj
 * */

import BaseComponent from "../../components/BaseComponent";
import {zbApi} from "../../services/basic";
import AddOrEdit from "./addOrEdit";

// 要显示的form表单
const formItemList =
    [
        {
            name: "accounts",
            label: "直播账号",
            keyword: "sfzh"
        },
        {
            name: "text",
            label: "直播项目",
            keyword: "zbxm"
        },
        {
            name: "person",
            label: "人员",
            keyword: "ry"
        },
        {
            name: "dateRange",
            label: '直播日期'
        },
    ];
// 显示的按钮
const buttons = ["query", "add", "edit", "export", "delete"];
// 表格列信息
const columns = [
    {title: '直播账号', dataIndex: 'zhmc'},
    {title: '直播项目', dataIndex: 'zbxm'},
    {title: '人员', dataIndex: 'ryxm'},
    {title: '开播时间', dataIndex: 'kbsj'},
    {title: '结束时间', dataIndex: 'jssj'},
];

class pageLive extends BaseComponent {
    constructor(props) {
        super(props);
        this.state = {
            ...this.state,
            formItemList,
            buttons,
            // columns,
            filename: "直播统计",
            // tableTitle: true,
            params: {
                // ztbz: "1"
            },
        }
        this.defaultPageSize = 7;
        this.columns = columns;
        this.queryApi = zbApi.getPage;
        this.deleteApi = zbApi.deletePs;
        this.EditItem = AddOrEdit;
    }
}

export default pageLive;